<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">

<title>参合缴费列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<link rel="stylesheet" href="css/admin.css">
<link rel="stylesheet" href="third/layer-v1.9.3/skin/layer.css">
<script type="text/javascript" src="<%=path %>/third/layer-v1.9.3/1.9.1/jquery.min.js"></script>
<script src="third/layer-v1.9.3/layer.js"></script>

<script src="js/admin.js"></script>
</head>
<body>
	<form method="post" action="" id="listform">
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder">已报销信息列表</strong>
			</div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left: 10px;">
							<li><a class="button border-main"
								href="<%=path%>/system/ChronicdisApplyServlet?m=Excel" ><span
								class="icon-edit"></span> 导出</a></li>
				</ul>
			</div>
			<table class="table table-hover text-center">
				<tr>	<th width="50">序号</th>
					<th width="50" style="text-align:center;">&nbsp;</th>
					<th>身份证号</th>
					<th>已报销金额</th>
					<th>用户姓名</th>
					<th>疾病编码</th>
					<th>创建时间</th>
				</tr>
				<%
				    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
					String pageNo = request.getParameter("pageNo");
			        String mhcx = request.getParameter("mhcx");
					int p = pageNo == null ? 1 : Integer.parseInt(pageNo);
					ChronicdisApplyDao dao = new ChronicdisApplyDao();
					String sql = "select * from t_chronicdis_apply where 1=1 ";
					Object[] params = {};
 					Page pageBean = dao.queryOjectsByPage(sql, params, p,
							Constant.ROW);
				%>
				<%
					for (int i = 0; i < pageBean.getDatas().size(); i++) {
						ChronicdisApply  model= (ChronicdisApply) pageBean.getDatas().get(i);
				%>
				<tr>
				<td><%=(i+1) %></td>
					<td><input type="checkbox" name="ids"
						value="<%=model.getIdcard()%>" /></td> 
				    <td align="center"><%=model.getIdcard()%></td>
					<td align="center"><%=model.getApplyAcount()%></td>
					<td align="center"><%=model.getName()%></td>
					<td align="center"><%=model.getChronicname() %></td>
					<td><%=model.getCreatetime() %></td>
				</tr>
				<%
					}
				%>
			</table>
			<div class="pagelist">
				<%
					if (pageBean.hasPre()) {
				%>
				<a
					href="<%=path%>/system/ChronicdisApplyServlet?m=list&pageNo=<%=pageBean.prePage()%>">上一页</a>
				<%
					} else {
				%>
				<a href="javascript:void(0)">上一页</a>
				<%
					}
				%>
				<%
					List<Integer> linkNums = pageBean.linkLumbers();
					for (int num : linkNums) {
					if (pageBean.isCurrent(num)) {
				%>
				<span class="current"><%=num%></span>
				<%
					} else {
				%>
				<a href="<%=path%>/system/ChronicdisApplyServlet?m=list&pageNo=<%=num%>"><%=num%></a>
				<%
					}
					}
				%>
				<%
					if (pageBean.hasNext()) {
				%>
				<a
					href="<%=path%>/system/ChronicdisApplyServlet?m=list&pageNo=<%=pageBean.lastPage()%>">下一页</a>
				<%
					} else {
				%>
				<a href="javascript:void(0)">下一页</a>
				<%
					}
				%>
				<a 
					href="<%=path%>/system/ChronicdisApplyServlet?m=list&pageNo=<%=pageBean.getPages()%>">尾页</a>
			</div>
		</div>
		<input type="hidden" class="familycode"/>
	</form>
    <span style="display:none" class="familycodes"></span>
</body>
</html>
